##
## Makefile for ftp in /home/morgan_t/Documents/svn-for-my-proj/tek2/UNIX/my_ftp
## 
## Made by thomas morgant
## Login   <morgan_t@epitech.net>
## 
## Started on  Sun Apr  8 15:11:47 2012 thomas morgant
## Last update Sun Apr  8 15:30:11 2012 thomas morgant
##

NAME_SERV	=	serveur
SRC_SERV	=	src/serv/serveur_ftp.c
OBJ_SERV	=	$(SRC_SERV:.c=.o)

NAME_CLT	=	client
SRC_CLT		=	src/clt/client_ftp.c	\
			src/my/str2tab.c
OBJ_CLT		=	$(SRC_CLT:.c=.o)

CFLAGS		=	-W -Wall -pedantic -ansi -I./inc/

CC		=	gcc

RM		=	rm -rf

all		:	$(NAME_SERV) $(NAME_CLT)

$(NAME_SERV)	:	$(OBJ_SERV)
			$(CC) -o $(NAME_SERV) $(OBJ_SERV) $(CFLAGS)

$(NAME_CLT)	:	$(OBJ_CLT)
			$(CC) -o $(NAME_CLT) $(OBJ_CLT) $(CFLAGS)

clean		:	
			$(RM) $(OBJ_SERV) $(OBJ_CLT)

fclean		:	clean
			$(RM) $(NAME_SERV) $(NAME_CLT)

re		:	fclean all